home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19950929-19951130
/
000405_news@columbia.edu_Thu Nov 16 22:51:14 1995.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA19264
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun>); Fri, 17 Nov 1995 09:42:35 -0500
Received: (from news@localhost) by apakabar.cc.columbia.edu (8.6.12/8.6.12) id JAA29492 for kermit.misc@watsun; Fri, 17 Nov 1995 09:42:33 -0500
Path: news.columbia.edu!sol.ctr.columbia.edu!news.kei.com!bloom-beacon.mit.edu!spool.mu.edu!torn!news.ccs.queensu.ca!news.ccs.queensu.ca!not-for-mail
From: mike@ccs.queensu.ca (Mike Smith)
Newsgroups: comp.protocols.kermit.misc
Subject: Problems with special characters in Output strings
Date: 16 Nov 1995 17:51:14 -0500
Organization: Queen's University, Kingston
Lines: 39
Sender: mike@knot.QueensU.CA
Message-Id: <48gf92$5ps@ccs-sparc2.queensu.ca>
Nntp-Posting-Host: ccs-sparc2.ccs
Apparently-To: kermit.misc@watsun.cc.columbia.edu
This is with MSK 3.14 patch level 9.
I have a login script that prompts for a password with ask and
later uses output to send the password at the appropriate time.
Pretty standard stuff. My problem is that occasionally the password
has a character that is somehow special to MSK. The trouble first
came to light with a leading @ character. If, say, \%p is @blah,
the statement
output \%p\13
looks for an indirect file named blah. My solution to this was
to translate @ characters in \%p as follows:
asg \%p \Freplace(\%p,@,\{64})
This solves the leading @ problem. Then I got a report from somebody
with a leading ) in their password. I tried many permutations on curly
bracket quoting and \F functions like \Fcontents but could not come up
with a combination that MSK liked. I'm willing to admit that I do not
understand MSK's parsing rules but I'm fairly convinced that many of the
combinations I tried were reasonable and produced unreasonable results.
Regardless, I eventually gave up beating my head on the \Freplace function
and looked again at the output function. To solve the leading @ and )
characters I omitted the \Freplace altogether and changed the output to:
output {\%p\13}
If you're still reading, you've probably predicted that the above fails
when \%p begins with }.
I'm hoping that someone can tell me I'm being doltish and the solution is
to simply <fill in the blank>.
--
Mike Smith mike@ccs.queensu.ca
Queen's University Michael.D.Smith@QueensU.CA
Computing and Communications Services (613) 545-2024